package com.chinasoft.maysham.manager.controller;

import com.chinasoft.maysham.manager.model.User;
import com.chinasoft.maysham.manager.util.AuthUtil;
import org.springframework.stereotype.Service;

@Service
public class BaseController {
    public String currentGroupId() {
        return null;
    }

    public String currentUserId() {
        User user = AuthUtil.currentUser();
        return user == null ? "" : user.getId();
    }

    public User currentUser() {
        return AuthUtil.currentUser();
    }

}
